package com.ruoyi.house_sale.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.PaidSchemeMapper;
import com.ruoyi.house_sale.domain.PaidScheme;
import com.ruoyi.house_sale.service.IPaidSchemeService;

import javax.annotation.Resource;

/**
 * 付款方案Service业务层处理
 *
 * @author ruoyi
 * @date 2022-03-28
 */
@Service
public class PaidSchemeServiceImpl implements IPaidSchemeService
{
    @Resource
    private PaidSchemeMapper paidSchemeMapper;

    /**
     * 查询付款方案
     *
     * @param psid 付款方案主键
     * @return 付款方案
     */
    @Override
    public PaidScheme selectPaidSchemeByPsid(Long psid)
    {
        return paidSchemeMapper.selectPaidSchemeByPsid(psid);
    }

    /**
     * 查询付款方案列表
     *
     * @param paidScheme 付款方案
     * @return 付款方案
     */
    @Override
    public List<Map> selectPaidSchemeList(PaidScheme paidScheme)
    {
        return paidSchemeMapper.selectPaidSchemeList(paidScheme);
    }

    /**
     * 新增付款方案
     *
     * @param paidScheme 付款方案
     * @return 结果
     */
    @Override
    public int insertPaidScheme(PaidScheme paidScheme)
    {
        return paidSchemeMapper.insertPaidScheme(paidScheme);
    }

    /**
     * 修改付款方案
     *
     * @param paidScheme 付款方案
     * @return 结果
     */
    @Override
    public int updatePaidScheme(PaidScheme paidScheme)
    {
        return paidSchemeMapper.updatePaidScheme(paidScheme);
    }

    /**
     * 批量删除付款方案
     *
     * @param psids 需要删除的付款方案主键
     * @return 结果
     */
    @Override
    public int deletePaidSchemeByPsids(Long[] psids)
    {
        return paidSchemeMapper.deletePaidSchemeByPsids(psids);
    }

    /**
     * 删除付款方案信息
     *
     * @param psid 付款方案主键
     * @return 结果
     */
    @Override
    public int deletePaidSchemeByPsid(Long psid)
    {
        return paidSchemeMapper.deletePaidSchemeByPsid(psid);
    }
}
